package com.msl.dialog;

import android.app.Dialog;
import android.content.Context;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.msl.R;

//等待对话框
public class WaitDialog extends Dialog {

    private String tag = "WaitDialog";
    private Context mContext;
    ImageView iv;
    public WaitDialog(Context context, int theme) {
        super(context, theme);
        mContext = context;
        setContentView(R.layout.dialog_wait);
        iv = (ImageView) findViewById(R.id.iv);
        Glide.with(context).asGif().load(R.drawable.wait).diskCacheStrategy(DiskCacheStrategy.ALL).into(iv);
    }

}


